-- GENERATED SPELL FOR [Wandering Eye of Kilrogg] --


function spell0_14386(pUnit, Event) --@Summon Netherwalker,n/a--
pUnit:FullCastSpellOnTarget(22876,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14386', 4000, 1)
end

function Sorts_14386(pUnit, Event)
local choix_sorts_14386 = math.random(0, 0)
if choix_sorts_14386 == 0 then
pUnit:RegisterEvent('spell0_14386', 1, 1)
end
end

function mob14386_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14386', math.random(1500, 3000), 1)
end

function mob14386_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14386_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14386_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14386, 1, 'mob14386_Action')
RegisterUnitEvent(14386, 2, 'mob14386_Leave')
RegisterUnitEvent(14386, 3, 'mob14386_Kill')
RegisterUnitEvent(14386, 4, 'mob14386_Die')
